<template>
  <div class="flex-main">
    <div class="flex-body">
      <evaluation-item class="mb" v-for="(item,index) in list" :key="index" :data="item"></evaluation-item>
      <no-data v-if="list.length==0" :title="'暂无评价记录'"></no-data>
    </div>
    <footer-nav class="flex-bottom" :title="4"></footer-nav>
  </div>
</template>
<script>
  import {
    getEvaluateList,
  } from "@/api/mine.js";
  export default {
    name: '',
    data() {
      return {
        list: [],
        CustomerID: this.$utils.uid,
      }
    },
    methods: {
      EvaluateList(data) {
        getEvaluateList(data).then(res => {
          this.list = res.list.data;
        }).catch(error => {
          Toast(error.msg);
        });
      },
    },
    mounted() {
      var data = {
        // customer_id: this.CustomerID
        customer_id: this.$utils.uid
      }
      this.EvaluateList(data);
    },

    components: {
      evaluationItem: () => import('@/model/mine/myEvaluationItem'),
    }
  }

</script>
<style lang="less" scoped></style>
